import { ReactNode } from 'react';

export type MenuItem = {
  label?: ReactNode;
  path?: string;
  name: string;
  key: string;
  children?: MenuItem[];
  type: string;
};

export const allMenuList: MenuItem[] = [
  {
    type: '',
    path: '/',
    name: 'getServerSideProps',
    key: 'index',
  },
  {
    type: '',
    path: '/getStaticProps',
    name: 'getStaticProps',
    key: 'staticPage',
  },
  {
    type: '',
    path: '/staticPage',
    name: '客户端渲染',
    key: 'static',
  },
  {
    type: '',
    path: '/slug/1/4',
    name: '动态路由',
    key: '/slug/[slug]',
  },
];
